package com.ruoyi.mes.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 工序对象 proce_info
 *
 * @author LongAndHao
 * @date 2023-04-09
 */
public class ProceInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 工序名称 */
    @Excel(name = "工序名称")
    private String proceName;

    /** 工艺顺序*/
    @TableField(exist = false)
    private Long proceSeque;

    /** 原料集合*/
    @TableField(exist = false)
    List<ProceMtr> proceMtrs;

    /** 设备集合*/
    @TableField(exist = false)
    List<DeviceInfo> deviceInfos;

    /** 执行时间 */
    @Excel(name = "执行时间")
    private Long times;
    /** 参数id */
    @Excel(name = "参数id")
    private Long parameterId;

    public Long getParameterId() {
        return parameterId;
    }

    public void setParameterId(Long parameterId) {
        this.parameterId = parameterId;
    }

    public Long getTimes() {
        return times;
    }

    public void setTimes(Long times) {
        this.times = times;
    }

    public Long getProceSeque() {
        return proceSeque;
    }

    public void setProceSeque(Long proceSeque) {
        this.proceSeque = proceSeque;
    }

    public List<ProceMtr> getProceMtrs() {
        return proceMtrs;
    }

    public void setProceMtrs(List<ProceMtr> proceMtrs) {
        this.proceMtrs = proceMtrs;
    }

    public List<DeviceInfo> getDeviceInfos() {
        return deviceInfos;
    }

    public void setDeviceInfos(List<DeviceInfo> deviceInfos) {
        this.deviceInfos = deviceInfos;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setProceName(String proceName)
    {
        this.proceName = proceName;
    }

    public String getProceName()
    {
        return proceName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("proceName", getProceName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
